<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            perspective: 800px;
        }
        div img{
            width: 200px;
            height: 200px;
            transform: rotateX(30deg); /*旋转x是向上旋转
            
                                        y是向下旋转
                                          */
        }
 .box1 img{
       transform: translate3d(100px,100px,100px);
 }
    </style>
</head>
<body>
    <div><img src="../img/img3.jpeg" alt=""></div>
    <div class="box1"><img src="../img/img1.jpg" alt=""></div>
</body>
</html>